/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.bridge;/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/28 15:17
 * Update Date Time:
 */

public abstract class Abstraction {
    protected Implementor implementor;
    private String name;

    public Abstraction(String name) {
        this.setName(name);
    }
    public void operation(){
        System.out.println("Abstraction-"+this.name+": ");
        implementor.Operation();
    }
    public void setImplementor(Implementor implementor) {
        this.implementor = implementor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
